<?=view('admin.common.header')?>
<style>
    .table>tbody>tr>td {vertical-align: middle;}
</style>
<form id="modifyform" action method="post">
<table class="table">
    <tr>
        <td>名称</td>
        <td>
            <input type="text" name="name" class="form-control" required="required"/>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <button class="btn btn-primary form-control eveAdd">添加小区</button>
        </td>
    </tr>
</table>
    <script>
        $('.eveAdd').click(function(){
            var name = $('input[name="name"]').val();
            if (name == '') {
                layer.msg('支持提现银行名称不能为空');
                return false;
            }
            $("#modifyform").ajaxSubmit(function(data){
                layer.msg(data.info);
                if (data.status == 1) {
                    window.parent.location.reload();
                }
            });
            return false;
        })
    </script>
</body>
</html>